{extend name="main/index" /}
{block name="main"}
<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="{:url('admin/material/materialStorage')}">项目入库材料详情</a>
            </li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
                <span class="input-icon">
                    <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
                    <i class="icon-search nav-search-icon"></i>
                </span>
            </form>
        </div><!-- #nav-search -->
    </div>

    <div class="page-content">
        <h3 class="header smaller lighter blue">添加入库材料</h3>
        <div class="row">
        <div class="col-xs-1">
        </div>
            <div class="col-xs-10">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="table-responsive" >
                            <span  class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1">  材料名称</label>
                                    <div class="col-sm-4">
                                        <select class="form-control" id="form-field-1"  class="col-xs-10 col-sm-5" name="material_name">
                                            {volist name="list" id="v"}
                                            <option class="col-xs-10 col-sm-5 " name="material_name" value="{$v['material_name']}">{$v['material_name']}</option>
                                            {/volist}
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1">  用材分部</label>
                                    <div class="col-sm-4">
                                        <select class="form-control" id="form-field-1"  class="col-xs-10 col-sm-5" name="timber_division">
                                            {volist name="list" id="v"}
                                            <option class="col-xs-10 col-sm-5 " name="timber_division" value="{$v['timber_division']}">{$v['timber_division']}</option>
                                            {/volist}
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1">实际单价 </label>
                                    <div class="col-sm-9">
                                        <input type="search" id="a" placeholder="estimate unit price"  name="actual_unit_price" class="col-xs-10 col-sm-5">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1" > 入库数量 </label>
                                    <div class="col-sm-9">
                                        <input type="search" id="b" onkeyup="change(this)"  placeholder="estimate number" name="actual_in_number" class="col-xs-10 col-sm-5">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 入库总价 </label>
                                    <div class="col-sm-9">
                                        <input type="text" id="c"  placeholder="estimate number" name="in_total_price" class="col-xs-10 col-sm-5" readonly>

                                        <input type="hidden" id="d" name="in_total_price" class="col-xs-10 col-sm-5" readonly>
                                    </div>
                                <div class="space-4"></div>


                              <div class="form-group"></div>

                                <div class="space-4"></div>

                                <div class="clearfix form-actions">
                                    <div class="col-md-offset-3 col-md-9">
                                        <button class="btn btn-info add_Warehouses" type="submit">
                                            <i class="icon-ok bigger-110"></i>
                                            确认添加
                                        </button>
                                        <button class="btn" type="reset">
                                            <a href="{:url('admin/material/materialStorage')}">
                                                 <i class="icon-undo bigger-110"></i>
                                            返回上一级
                                            </a>
                                        </button>
                                    </div>
                                </div>
                              </span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-3">
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
</div>
{/block}

{block name="myjs"}
<script src="/static/admin/assets/meijs/admin_material.js"></script>
{/block}
